import java.util.Scanner;

public class zjy1 {
    public  static  void main(String[] args){
        System .out.println("请输入一个整数");
        Scanner sc=new Scanner(System.in);
        int num =sc.nextInt();


        int b=num/60;
        int a=num%60;
        System.out.println(a+"分"+b+"秒");

    }
}
